package com.example.qxfw.hbqx.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.qx.HighElements;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
@DS("qx")
public interface HighElementsMapper extends BaseMapper<HighElements> {

    /**
     *根据观测时间查询高空预报
     * @param observtime 观测时间
     * @return
     */
    @Select("SELECT drybulbtemp, stationpress, stationid, stationname " +
            "FROM high_elements " +
            "WHERE observtime = #{observtime} ")
    List<HighElements> selectByObservTimeOfHighElements(Date observtime);
}
